package com.scalar.chiptrack.operations.dataentry.assembly.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Sep 24, 2006
 * Time: 12:12:30 AM
 */
public class AssemblyDataEntryActionCommandFactory
{
    private AssemblyDataEntryActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {       

        if (action == null || "partNumbers".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntryLoadPartNumbersCommand();
        }
        else if ("locations".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntryLoadLocationsCommand();
        }
        else if ("fabLotNumbers".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntryLoadFabLotNumbersCommand();
        }
        else if ("lotNumbers".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntrylLoadLotNumbersCommand();
        }
        else if ("loadLotInfo".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntryLoadLotDetailsCommand();
        }
        else if ("shopOrderNo".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntryShopOrderDetailsCommand();
        }
        else if ("save".equalsIgnoreCase(action))
        {
            return new AssemblyDataEntrySaveCommand();
        }
        return null;
    }
}
